package p.sglmsn.top.user.controller;

import cn.hutool.log.Log;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import p.sglmsn.top.user.feign.MallFeign;

@RestController
@RequestMapping("/user")
public class UserController {

    static Log log = Log.get();

    @Autowired
    MallFeign mallFeign;
    @RequestMapping("getUser/{id}")
    public Object getUser(@PathVariable("id") Long id){
        return id;
    }

    @RequestMapping("queryMall")
    public Object queryMall(){
        log.info( mallFeign.list());
        return "测试";
    }
}
